
import { fromJS } from "immutable"

const defaultState = fromJS({
    count: 2088,
    city: "Big Wuhan",
    collapsed: false,
    annoList: [],
    homeList: [],

})


export const data = (state = defaultState, action) => {
    const { type, payload } = action
    switch (type) {

        case "changecollapsed":
            return state.set("collapsed", payload)
            break

        case "getAnnoList":
            return state.set("annoList", payload)
            break

        default:
            return state;
            break;
    }
}